<%@page pageEncoding="UTF-8" %>
<!doctype html>
<html lang="zh-cmn">
<head>
<%@include file="/WEB-INF/pages/comm/head.jsp"%>
</head>
<body>
<div class="container-fluid">
    <div class="panel panel-default">
        <div class="panel-body">
           <form class="form-inline" id="condition">
               <select name="columnName" class="form-control">
                   <option value="name">登录名称</option>
                   <option value="username">姓名</option>
                   <option value="tel">电话</option>
               </select>
               <input type="text" name="columnValue" class="form-control">
                <button class="btn btn-primary" type="button" onclick="search()">查询</button>
           </form>
        </div>
    </div>
    <div id="toolbar">
    <button class="btn btn-primary" type="button" onclick="prepareGrant()">用户授权</button>
    </div>
    <table id="table"
           data-url="${ctx}/sys/user/search"
           data-toggle="table"
           data-pagination="true"
           data-side-pagination="server"
           data-toolbar="#toolbar"
           data-toolbar-align="right"
           data-id-field="id">
        <thead>
        <tr>
            <th data-radio="true"></th>
            <th data-field="id">编号</th>
            <th data-field="name">登录名称</th>
            <th data-field="username">姓名</th>
            <th data-field="tel">电话号码</th>
            <th data-field="status" data-formatter="fmtStatus" data-cell-style="statusStyle">状态</th>
        </tr>
        </thead>
    </table>
    <div id="grant">
        <table id="roleTable"
               data-url="${ctx}/sys/role/list"
               data-toggle="table"
        >
            <thead>
            <tr>
                <th data-radio="true"></th>
                <th data-field="id">编号</th>
                <th data-field="name">名称</th>
                <th data-field="state">状态</th>
                <th data-field="modifyBy">修改人</th>
                <th data-field="modifyTime">修改时间</th>
            </tr>
            </thead>
        </table>
    </div>

</div>
<%@include file="/WEB-INF/pages/comm/foot.jsp"%>
<script src="res/js/user.js"></script>
</body>
</html>
